package com.example.dw.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 通知实体类
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("notify")
public class Notify implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 通知ID
     */
    @TableId(value = "notifyid", type = IdType.AUTO)
    private Integer notifyid;

    /**
     * 通知标题
     */
    @TableField("title")
    private String title;

    /**
     * 通知头像/图片
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 创建时间
     */
    @TableField("createdAt")
    private LocalDateTime createdAt;

    /**
     * 是否显示
     */
    @TableField("isShow")
    private String isShow;

    /**
     * 关联新闻ID
     */
    @TableField("newsid")
    private Integer newsid;
} 